package com.hoshiicloud.stock.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hoshiicloud.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 仓库类型表实体
 *
 * @author : yangcheng
 * @date : 2019/4/30 10:36
 * @mail : maiboyc@163.com
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "warehouse_type")
public class WarehouseType implements Serializable {

    private Long id;

    /**
     * 类别代码
     */
    @ApiModelProperty(name = "code", value = "类别代码", dataType = "java.lang.String", example = "WT001")
    private String code;
    /**
     * 类别名称
     */
    @ApiModelProperty(name = "name", value = "类别名称", dataType = "java.lang.String", example = "租户内部仓")
    private String name;

    /**
     * 是否多仓库
     */
    @ApiModelProperty(name = "flag", value = "是否多仓库 1 是 0 否", dataType = "java.lang.String", example = "0")
    private Integer flag;

    @ApiModelProperty(value = "是否删除",hidden =true)
    private Integer deleted;

    @TableField("createdtime")
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime createdTime;

    @TableField("createdby")
    @ApiModelProperty(name = "createdBy", value = "创建人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String createdBy;

    @TableField("updatedtime")
    @ApiModelProperty(value = "修改时间",hidden = true)
    private LocalDateTime updatedTime;

    @TableField("updateby")
    @ApiModelProperty(value = "修改人",hidden =true)
    private String updatedBy;

}
